package com.mdd.common.entity.order;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.mdd.common.base.entity.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;


@Data
@TableName("order_clue")
@ApiModel("线索表")
@EqualsAndHashCode(callSuper = true)
public class OrderClue  extends BaseEntity {

    @TableId(value="id", type= IdType.AUTO)
    @ApiModelProperty(value = "线索id")
    private Long id;

    @ApiModelProperty(value = "昵称")
    private String driverName;
    @ApiModelProperty(value = "联系方式")
    private String phoneNumber;
    @ApiModelProperty(value = "驾驶证年限")
    private Integer licensePeriod;
    @ApiModelProperty(value = "网约车资格证")
    private Integer qualificationCertificate;
    @ApiModelProperty(value = "意愿城市")
    private String willingCity;
    @ApiModelProperty(value = "车辆方法（车辆来源 0 自持/1 租赁）")
    private Integer carFrom;
    @ApiModelProperty(value = "预计可上岗时间")
    private Integer availableDate;
    @ApiModelProperty(value = "意向上岗平台")
    private String intentionPlatform;
    @ApiModelProperty(value = "填写渠道")
    private Integer channel;
    @ApiModelProperty(value = "备注")
    private String remark;

    @ApiModelProperty(value = "车辆方案")
    private String vehicleSchemes;

    @ApiModelProperty("创建时间")
    @TableField(fill = FieldFill.INSERT,value = "create_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    @ApiModelProperty("状态 0待认领 1已认领")
    private Integer status;
    @ApiModelProperty("组织机构编码")
    private String deptCode;
    @ApiModelProperty("组织机构id")
    private Long deptId;

}
